import axios from 'axios';

const request = axios.create({
  timeout: 5000,
  baseURL: "http://kumanxuan1.f3322.net:8001"
})

// 请求拦截
request.interceptors.request.use(config => {
  return config
},err => {
  return Promise.reject(err)
})

// 响应拦截
request.interceptors.response.use(res => {
  return res
},err => {
  console.log(err);
  alert(err)
  return Promise.reject(error)
})




export default request